/**index.wxss**/
// 页面整体区域
page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #efefee !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: scroll;
  > view{
      &:nth-child(n+2){
          margin-top: 16rpx;
      }
  }
}
// 轮播图区域
.swiper-container{
    width: 100%;
    height: 360rpx;
    border-radius: 10rpx;
    
    .swiper{
        height: 360rpx;

        swiper-item{
            image{
                width: 100%;
                height: 100%;
                border-radius: 10rpx;
            }
        }
    }
}
// 公司信息区域
.info{
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    padding: 16rpx;
    border-radius: 10rpx;
    font-size: 24rpx;
    
    .iconfont{
        font-size: 24rpx;
    }
}
// 商品导航区域
.good-nav{
    display: flex;
    justify-content: space-between;
    background-attachment: #fff;
    padding: 20rpx 16rpx;
    border-radius: 10rpx;
    
    view{
        navigator{
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        image{
            width: 80rpx;
            height: 80rpx;
        }
    }

    text{
        font-size: 24rpx;
        margin-top: 12rpx;
    }
}
// 推荐商品区
.good-hot{
    background-color: #fff;
    padding: 16rpx;
    border-radius: 10rpx;
    font-size: 24rpx;

    .scroll-x{
        width: 100%;
        white-space: nowrap;

        view{
            display: inline-block;
            width: 320rpx;
            height: 440rpx;
            margin-right: 16rpx;

            .good-item{
                display: flex;
                flex-direction: column;
                justify-content: space-between;

                text{
                    &:nth-of-type(1){
                        font-weight: bold;
                    }
                }
            }

            image{
                width: 100%;
                height: 320rpx;

            }

            &:last-child{
                margin-right: 0;
            }
        }
    }
}
.scroll-x{
    width: 100%;
    white-space: nowrap;

    view{
        display: inline-block;
        width: 300rpx;
        height: 80rpx;
    }
}
.scroll-y{
    height: 400rpx;
    background-color: skyblue;
    margin-top: 10rpx;

    view{
        height: 400rpx;

        &:last-child{
            background-color: lightsalmon;
        }
        &:first-child{
            background-color: lightseagreen;
        }
    }

    
}